using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using System;
using 畜牧业审核程序国产.Models;

namespace 畜牧业审核程序国产.Views.PreReviewView;

public partial class PreReview : Window
{
    private SettingManager _settingManager;
    public PreReview()
    {
        InitializeComponent();
        _settingManager = new SettingManager();
        this.Closing += OnClosing;
    }

    private void OnClosing(object? sender, WindowClosingEventArgs e)
    {
            _settingManager.UpdateLedgerPath(StbxLedger.Text,StbxLedgerPath.Text);
           //_settingManager.SaveSettings();这一步不用了
        
    }
}